package com.xnyzc.lhy.didi.tongcheng.penum;

import com.xnyzc.lhy.common.entity.PEnum;
import com.xnyzc.lhy.common.penum.vehicle.ECallVehType;

public enum ETongChengCallVehType implements PEnum<Integer> {

    expressTrain(1, "立即叫车"), reservation(2, "预约叫车"),
    meetAirport(3, "接机"), deliveryAirport(4, "送机"),
    meetStation(5, "接站"), deliveryStation(6, "送站");

    int value;
    String desc;

    ETongChengCallVehType(int type, String desc) {
    }

    @Override
    public String toChString() {
        return desc;
    }

    @Override
    public Integer getValue() {
        return value;
    }

    public static ECallVehType getByTcType(int type) {
        switch (type) {
            default:
                return ECallVehType.expressTrain;
            case 2: {
                return ECallVehType.reservation;
            }
            case 3: {
                return ECallVehType.meetAirport;
            }
            case 4: {
                return ECallVehType.deliveryAirport;
            }
            case 5: {
                return ECallVehType.meetStation;
            }
            case 6: {
                return ECallVehType.deliveryStation;
            }
        }
    }
}
